/*
 * Author: 李波(Edwin Lee)
 * Date: 2024-08-07 01:13:51
 * FilePath: /mprpc/src/include/mprpcapplication.h
 * LastEditTime: 2024-08-20 06:52:53
 * version: 1.0
 * Description: mprpc框架基础类,负责框架的初始化操作
 */
#ifndef __MPRPCAPPLICATION_H__
#define __MPRPCAPPLICATION_H__
#include "mprpcconfig.h"
#include "mprpcchannel.h"
#include "mprpccontroller.h"
//mprpc框架基础类 单例模式
class MprpcApplication
{
public:
    static void init(int argc,char** argv);
    static MprpcApplication& getInstance();
    static void showArgsHelp();
    static MprpcConfig& getConfig();
private:
    MprpcApplication(){};
    MprpcApplication(const MprpcApplication&) = delete;
    MprpcApplication(const MprpcApplication&&) = delete;

    static MprpcConfig config_;
};
#endif